package com.day01;

/**
 * 计算机中不同进制的使用说明
 * java1.5版本还不支持二进制表达
 *
 *
 */
public class BinaryTest {
    public static void main(String[] args) {
        int binary = 0b110;
        int decimal = 110;
        int octal = 0110;
        int hex = 0x110A;

        //打印输出时全部都是十进制
        System.out.println(binary);
        System.out.println(decimal);
        System.out.println(octal);
        System.out.println(hex);
    }
}
